const Index = () => import(/* webpackChunkName: "group-foo" */ '../views/srbac/index.vue')
const Signin = () => import(/* webpackChunkName: "srbac-auth" */ '../views/auth/signin.vue')
const Layout = () => import(/* webpackChunkName: "srbac-layout" */ '../views/srbac/layout.vue')
const System = () => import(/* webpackChunkName: "srbac-layout" */ '../views/srbac/system.vue')
const routers = [
  {
    path: '/',
    name: 'Index',
    meta: {
      title: 'SIWI-SRBAC管理系统', requiresAuth: true
    },
    component: Index
  },
  {
    path: '/signin',
    name: 'Signin',
    meta: {
      title: '登录'
    },
    component: Signin
  },
  {
    path: '/srbac',
    name: 'Srbac',
    meta: {
      title: 'SIWI-SRBAC管理系统'
    },
    component: Layout,
    children: [
      {
        path: 'system',
        name: 'System',
        meta: {
          title: '系统', requiresAuth: true
        },
        component: System
      }
    ]
  }
]
export default routers
